#pragma once
#include "../cmn/cmn.h"


#define MAX_CANDIDATE_NUM 1000

extern int create_rough_map_and_box(unsigned char* p_src_img, int img_width, int img_height, sp_output* p_sp, int touch_x, int touch_y);
extern void choose_best_box(short p_wins[][4], int win_num, short* p_final_win, float* p_af_conf, int touch_x, int touch_y);
extern float computer_af_conf(unsigned char* p_af_map, int width, int height, short* p_win);

extern unsigned char g_p_rough_map[];
extern short g_candidate_win[][4];
extern short g_candidate_num;
extern float g_p_conf_vector[S_PIX_NUM];
